package net.sos.services.common;

import java.io.IOException;
import java.util.Arrays;

import org.springframework.beans.BeansException;
import org.springframework.beans.factory.support.DefaultListableBeanFactory;
import org.springframework.web.context.support.AbstractRefreshableWebApplicationContext;

public class MyLoader extends AbstractRefreshableWebApplicationContext {

    @Override
    protected void loadBeanDefinitions(DefaultListableBeanFactory factory)
            throws IOException, BeansException {
        System.out.println(factory);
    }
    
    public static void main(String[] args) {
        MyLoader[] loaders = new MyLoader[11];
        Arrays.fill(loaders, new MyLoader());
        for(MyLoader loader : loaders)   System.out.println(loader);
    }

}
